package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.DeviceBlacklistMapper;
import com.ruoyi.boss.domain.DeviceBlacklist;
import com.ruoyi.boss.service.IDeviceBlacklistService;

/**
 * 设备号黑名单Service业务层处理
 * 
 * @author rui
 * @date 2025-08-18
 */
@Service
public class DeviceBlacklistServiceImpl implements IDeviceBlacklistService 
{
    @Autowired
    private DeviceBlacklistMapper deviceBlacklistMapper;

    /**
     * 查询设备号黑名单
     * 
     * @param id 设备号黑名单主键
     * @return 设备号黑名单
     */
    @Override
    public DeviceBlacklist selectDeviceBlacklistById(Long id)
    {
        return deviceBlacklistMapper.selectDeviceBlacklistById(id);
    }

    /**
     * 查询设备号黑名单列表
     * 
     * @param deviceBlacklist 设备号黑名单
     * @return 设备号黑名单
     */
    @Override
    public List<DeviceBlacklist> selectDeviceBlacklistList(DeviceBlacklist deviceBlacklist)
    {
        return deviceBlacklistMapper.selectDeviceBlacklistList(deviceBlacklist);
    }

    /**
     * 新增设备号黑名单
     * 
     * @param deviceBlacklist 设备号黑名单
     * @return 结果
     */
    @Override
    public int insertDeviceBlacklist(DeviceBlacklist deviceBlacklist)
    {
        return deviceBlacklistMapper.insertDeviceBlacklist(deviceBlacklist);
    }

    /**
     * 修改设备号黑名单
     * 
     * @param deviceBlacklist 设备号黑名单
     * @return 结果
     */
    @Override
    public int updateDeviceBlacklist(DeviceBlacklist deviceBlacklist)
    {
        return deviceBlacklistMapper.updateDeviceBlacklist(deviceBlacklist);
    }

    /**
     * 批量删除设备号黑名单
     * 
     * @param ids 需要删除的设备号黑名单主键
     * @return 结果
     */
    @Override
    public int deleteDeviceBlacklistByIds(Long[] ids)
    {
        return deviceBlacklistMapper.deleteDeviceBlacklistByIds(ids);
    }

    /**
     * 删除设备号黑名单信息
     * 
     * @param id 设备号黑名单主键
     * @return 结果
     */
    @Override
    public int deleteDeviceBlacklistById(Long id)
    {
        return deviceBlacklistMapper.deleteDeviceBlacklistById(id);
    }
}
